OUT:=client
SRCS:=$(wildcard *.c)
OBJS:=$(patsubst %.c,%.o, $(SRCS))
CC:=gcc
$(OUT):$(OBJS)
	$(CC) $^ -o $@ -lpthread
%.o:%.c
	$(CC) -c $^ -o $@ -g
.PHONY:clean rebuild
clean:
	$(RM) $(OBJS) $(OUT)
rebuild:clean client